from random import randint
def malade():
    n=1
    x=randint(1,250)
    while x!=1:
        x= ...
        n= ...
    return n